package top.lishuoboy.hibernate.validator.a3_1_3;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/** 车库 */
public class Garage {

    @NotNull
    @Size(min = 3)
    private String name;

    @Valid
    public Garage(String name) {
        this.name = name;
    }

    public boolean checkCar(@Valid @NotNull Car car) {
        return false;
    }
}